package org.dormnet.dao.bean;

import java.util.Date;

public class Dormnews {
	private Integer dnId;
	private Integer dormid;
	private String news;
	private String studentid;
	private Date ptime;
	private int isdeleted;
	public Integer getDnId() {
		return dnId;
	}
	public void setDnId(Integer dnId) {
		this.dnId = dnId;
	}
	
	public String getNews() {
		return news;
	}
	public void setNews(String news) {
		this.news = news;
	}
	public String getStudentid() {
		return studentid;
	}
	public void setStudentid(String studentid) {
		this.studentid = studentid;
	}
	public Date getPtime() {
		return ptime;
	}
	public void setPtime(Date ptime) {
		this.ptime = ptime;
	}
	public int getIsdeleted() {
		return isdeleted;
	}
	public void setIsdeleted(int isdeleted) {
		this.isdeleted = isdeleted;
	}
	@Override
	public String toString() {
		return "Dormnews [dnId=" + dnId + ", dormid=" + dormid + ", news="
				+ news + ", studentid=" + studentid + ", ptime=" + ptime
				+ ", isdeleted=" + isdeleted + "]";
	}
	public Dormnews(Integer dnId, Integer dormid, String news, String studentid,
			Date ptime, int isdeleted) {
		super();
		this.dnId = dnId;
		this.dormid = dormid;
		this.news = news;
		this.studentid = studentid;
		this.ptime = ptime;
		this.isdeleted = isdeleted;
	}
	public Dormnews() {
		super();
	}
	public Integer getDormid() {
		return dormid;
	}
	public void setDormid(Integer dormid) {
		this.dormid = dormid;
	}
	
	
}
